var config = require('./webpack.config.js');
var webpack = require('../webpack');
var compiler = webpack(config);
compiler.hooks.compile.tap('xxx', function (...args) {
    console.log(args);
});
debugger
compiler.run(function(assert) {
    console.log(assert);
});
// compiler.watch({}, (err, stats) => {
//     if (err) {
//         console.log(err)
//         return
//     }
//     console.log('Main', stats)
// })